package com.ljq.cksp.dao;

import com.ljq.cksp.pojo.Book;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author:ljq
 * @Date:2020/3/4
 */
public interface BookDao extends JpaRepository<Book, Integer> {
    List<Book> findByTitleContains(String title);
    Book findById(int id);
}
